package com.example.mykotlin.model.dto

import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.Size

@Schema(name = "OpenSafeDTO", title = "二级认证")
data class OpenSafeDTO(
    @Schema(title = "用户密码的加密哈希值，存储加密后的密码而非明文")
    @field:Size(max = 512, message = "长度不能超过512")
    @field:NotBlank(message = "不能为空")
    var password: String? = null,
)
